package com.common.ui.recycleview.adapter.viewholder;

import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import com.common.ui.recycleview.base.ViewHolder;

/**
 * @author jack
 */

public class HeaderHolder extends ViewHolder {

    private View view;

    public HeaderHolder(View itemView) {
        super(itemView);
        this.view = itemView;
    }


    public static HeaderHolder createViewHolder(View itemView) {
        HeaderHolder holder = new HeaderHolder(itemView);
        return holder;
    }

    public static HeaderHolder createViewHolder(Context context, ViewGroup parent, int layoutId) {
        View itemView = LayoutInflater.from(context).inflate(layoutId, parent,
                false);
        HeaderHolder holder = new HeaderHolder(itemView);
        return holder;
    }


}
